< previous page page_551 next page >

Page 551
tables, including data integrity errors, make up the most common group. The second group includes those errors caused by locked tables, restricted access, or multiuser conflicts.
Note.gif
Errors concerning table locks, restricted access, and multiuser issues are covered in depth in the last week of the book. In this chapter, you focus on the more common group of errors.

In most cases, all you need to do is trap for the error, report it to the user, and allow the user to return to the data entry screen to fix the problem. If you use the Visual Basic data control in your data forms, you can take advantage of the automatic database error reporting built into the data control. As an example, let's put together a simple data entry form to illustrate some of the common data entry-oriented database errors.
Start a new Visual Basic Standard EXE project to illustrate common database errors. Add a data control, two bound input controls, and two label controls. Use Table 14.3 as a reference for adding the controls to the form. Refer to Figure 14.11 as a guide for placing the controls.
0551-01.jpg
Figure 14.11.
Laying out the DataErr form.

 
< previous page page_551 next page >

If you like this book, buy it!